package com.demo.resourcecode.c5;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.ClassPathResource;

import com.demo.resourcecode.service.MessageService;
import com.demo.spring.IOC的源码分析.MyFactoryBean;
import com.demo.spring.IOC的源码分析.PersonService;

public class ContructDemo {

	public static void main(String[] args) {
		BeanFactory bf = new XmlBeanFactory(new ClassPathResource("construct.xml"));

		TestConstruct testConstruct = bf.getBean("testConstruct", TestConstruct.class);
		TestConstruct testConstruct1 = bf.getBean("testConstruct2", TestConstruct.class);
	}

}
